package com.mejlisse.gwt.request;

import com.google.gwt.valuestore.shared.Record;
import org.springframework.roo.addon.gwt.RooGwtMirroredFrom;
import com.mejlisse.server.domain.News;
import com.google.gwt.requestfactory.shared.DataTransferObject;
import com.google.gwt.valuestore.shared.Property;
import com.mejlisse.gwt.shared.Category;
import java.util.Date;

@RooGwtMirroredFrom(News.class)
@DataTransferObject(News.class)
public interface NewsRecord extends Record {

    public String TOKEN = "NewsRecord";

    Property<java.lang.String> accroche = new com.google.gwt.valuestore.shared.Property<java.lang.String>("accroche", "Accroche", java.lang.String.class);

    Property<java.lang.String> article = new com.google.gwt.valuestore.shared.Property<java.lang.String>("article", "Article", java.lang.String.class);

    Property<com.mejlisse.gwt.shared.Category> categ = new com.google.gwt.valuestore.shared.EnumProperty<com.mejlisse.gwt.shared.Category>("categ", com.mejlisse.gwt.shared.Category.class, com.mejlisse.gwt.shared.Category.values());

    Property<java.util.Date> newsDate = new com.google.gwt.valuestore.shared.Property<java.util.Date>("newsDate", "News Date", java.util.Date.class);

    Property<java.lang.String> source = new com.google.gwt.valuestore.shared.Property<java.lang.String>("source", "Source", java.lang.String.class);

    Property<java.lang.String> titre = new com.google.gwt.valuestore.shared.Property<java.lang.String>("titre", "Titre", java.lang.String.class);

    abstract String getAccroche();

    abstract String getArticle();

    abstract Category getCateg();

    abstract Date getNewsDate();

    abstract String getSource();

    abstract String getTitre();

    abstract boolean isChanged();

    abstract void setAccroche(String accroche);

    abstract void setArticle(String article);

    abstract void setCateg(Category categ);

    abstract void setNewsDate(Date newsDate);

    abstract void setSource(String source);

    abstract void setTitre(String titre);
}
